package com.aiti.lulian.service;

import com.aiti.base.core.base.service.BaseService;
import com.aiti.lulian.dto.LuLianOfferDto;
import com.aiti.lulian.entity.LuLianOffer;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.Map;

/**
 * @ClassName ILuLianOfferService
 * @Description 报价表service
 * @Author diaozhende
 * @Date 2024/6/19 0019 11:00
 */
public interface ILuLianOfferService extends BaseService<LuLianOffer> {
    /**
     * 查询报价总数
     *
     * @param
     * @return int
     * @date 2024/6/21 0021 15:30
     * @author diaozhende
     */
    int queryTotalCount();

    /**
     * 查询报价列表（条件、分页）
     *
     * @param
     * @date 2024/7/3 16:14
     * @author WongMZ
     */
    Map<String, Object> queryOfferListPage(Page<LuLianOffer> page, LuLianOfferDto luLianOfferDto);

    Map<String, Object> queryCount(String offerUserId);

    boolean updateOfferByBaseId(LuLianOffer luLianOffer);

    int saveOffer(LuLianOfferDto luLianOfferDto);
}
